<template>
  <n-message-provider>
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </n-message-provider>
</template>

<script setup>
import { NMessageProvider } from 'naive-ui'
</script>